package com.gec.hawaste.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gec.hawaste.entity.Qualification;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gec.hawaste.vo.ExamineDo;
import com.gec.hawaste.vo.QualificationDo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author chenxys
 * @since 2022-07-01
 */
public interface QualificationMapper extends BaseMapper<Qualification> {
    @Select("SELECT qualification.*," +
            "sys_user.`name` check_user_name" +
            "   FROM qualification LEFT JOIN sys_user" +
            "   ON qualification.check_user_id = sys_user.id" +
            "   AND qualification.del_flag=0 AND sys_user.del_flag=0 " +
            "   ${ew.customSqlSegment}")
    IPage<QualificationDo> selectByCondition(IPage<QualificationDo> page,
                                       @Param("ew") Wrapper ew);
}
